import java.sql.Timestamp;
import java.util.Date;
import java.util.Random;

public class Test {
    public static void main(String[] args) {

        Date date = new Date();
        System.out.println(date.getTime());

        String d =date.toString();


        java.sql.Date date1 = new java.sql.Date(date.getTime());
        System.out.println(date1);

        System.out.println(d);

        Timestamp timestamp = new Timestamp(date.getTime());

        System.out.println(timestamp);

        Random random = new Random();
        int a = random.nextInt(900000)+100000;


        int r = -1;

        System.out.println(r>0);

    }
}
